package com.anjie.powerproject.pojo.dto;


import javax.persistence.Column;
import java.util.List;

public class DynamicPropertyDTO {

    /**
     * id
     */
    private Integer id;

    /**
     * 开启或关闭工况，0关闭 1开启
     */
    private Integer isOpen;

    private Integer graphId;

    /**
     * 目标工况
     */
    private Integer targetResId;

    /**
     * 目标工况的工作时间
     */
    private Integer workTime;

    /**
     * 工况升级使用时间：周一到周日，value为1-7；工作日、节假日，value为10、11
     */
    private List<String> date;

    private List<DynamicPropertyDetail> details;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public Integer getGraphId() {
        return graphId;
    }

    public void setGraphId(Integer graphId) {
        this.graphId = graphId;
    }

    public Integer getTargetResId() {
        return targetResId;
    }

    public void setTargetResId(Integer targetResId) {
        this.targetResId = targetResId;
    }

    public List<DynamicPropertyDetail> getDetails() {
        return details;
    }

    public void setDetails(List<DynamicPropertyDetail> details) {
        this.details = details;
    }

    public Integer getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Integer workTime) {
        this.workTime = workTime;
    }

    public List<String> getDate() {
        return date;
    }

    public void setDate(List<String> date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "DynamicPropertyDTO{" +
                "id=" + id +
                ", isOpen=" + isOpen +
                ", graphId=" + graphId +
                ", targetResId=" + targetResId +
                ", workTime=" + workTime +
                ", date=" + date +
                ", details=" + details +
                '}';
    }
}
